#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int DataType;
typedef struct BinaryTreeNode
{
	DataType val;
	struct BinaryTreeNode* leftchild;
	struct BinaryTreeNode* rightchild;
}BTNode;

BTNode* BuyNode(DataType x)
{
	BTNode* NewNode = (BTNode*)malloc(sizeof(BTNode));
	if (NewNode == NULL)
	{
		perror("malloc fail!!!");
		exit(1);
	}
	NewNode->val = x;
	NewNode->leftchild = NewNode->rightchild = NULL;
	return NewNode;
}

